package thread;

public class MyThread implements Runnable {
    private int i = 0;
    public MyThread(int i){
        this.i = i;
    }
    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(Thread.currentThread().getName() + "----"+i);

    }

}
